 /*****************************
 * Copyright (c) 2010 by Hotct Co. Ltd.  All rights reserved.
 ****************************/
package com.happy.memcache;

import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

public class D {
    public static void main(String[] args) {
    	Socket coSocket=new Socket();
		MemCachedManager manager=MemCachedManager.getInstance();

	    manager.add("100000", "用户信息");
	    List<String> arrList=new ArrayList<String>();
	    arrList.add("aaaa");
	    arrList.add("bbbb");
	    manager.add("list",arrList);
		long timeTestStart=System.currentTimeMillis();//记录开始时间
		System.out.println(manager.get("test"));
		System.out.println(manager.isExists("100000"));
		System.out.println(manager.get("hello"));
	   List<String> bList=(List<String>)manager.get("list");
	   for (String string : bList) {
		 System.out.println(string+"\n");
	}
		long timeTestEnd=System.currentTimeMillis();//记录结束时间
  	    System.out.println("service.findByProductCode运行时间是"+(timeTestEnd-timeTestStart)+"毫秒"); 
	}
}
 